import { v4 as uuidv4 } from 'uuid';
export const getUUID=()=>{
    // 先从本地存储中是否已存在uuid
    let uuid_token=localStorage.getItem('UUIDTOKEN');
    if(uuid_token==null){
        // 如果不存在，重新创建uuid并存储
        uuid_token=uuidv4();
        localStorage.setItem('UUIDTOKEN',uuid_token);
    }
    return uuid_token;
}